import request from "../utils/request";

export const publishApi = (data) => request.post('/user/addArticle', data)
export const imgApi = (data) => request.post('http://124.223.14.236:8060/home/common/upload?type=images', data, {
  headers: {
    'Content-Type': 'multipart/form-data',
  }
})
export const getMyActicleApi = (data) => request.get('/user/myArticle', {params:data})
export const delMyActicleApi = (data) => request.get('/user/delArticle', {params:data})
export const editApi = (data) => request.post('/user/editArticle', data)
